@extends('layouts.app')
@section('title','新闻公告')
@section('content')
    <div class="container-fluid py-4 bg-grey">
        <div class="container ">
            <p class="service-home-title bg-dark "><em></em>
                <span></span>新闻公告</p>
            <div class="mt-4">
                @foreach($contents as $item)
                    <div class="media notice-item">
                        <img src="{{$item->content_detail->asset?$item->content_detail->asset->path:''}}" class="mr-4  notice-image" >
                        <div class="media-body">
                            <a href="{{url('/content/'.$item->id)}}">
                            <h5 class="notice-title">{{$item->content_detail->title}}</h5>
                            </a>
                            {{$item->content_detail->sub_title}}
                     </div>
                    </div>
                @endforeach
            </div>
        </div>
    </div>
    @endsection
